package com.cn.demo.mapper;

import com.cn.demo.entity.Design;
import com.cn.demo.entity.DesignExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface DesignMapper {
    long countByExample(DesignExample example);

    int deleteByExample(DesignExample example);

    int deleteByPrimaryKey(String designId);

    int insert(Design record);

    int insertSelective(Design record);

    List<Design> selectByExample(DesignExample example);

    Design selectByPrimaryKey(String designId);

    int updateByExampleSelective(@Param("record") Design record, @Param("example") DesignExample example);

    int updateByExample(@Param("record") Design record, @Param("example") DesignExample example);

    int updateByPrimaryKeySelective(Design record);

    int updateByPrimaryKey(Design record);

    Design getByCurriculumDesignIdAndStudentId(@Param("studentId") String studentId,@Param("curriculumDesignId") String curriculumDesignId);

    Design getDesignSubject(@Param("studentId")String studentId, @Param("curriculumDesignId")String curriculumDesignId);

    List<Design> getOrganizationStudentDesignTeam(@Param("studentId")String studentId, @Param("curriculumDesignId")String curriculumDesignId);
}